package com.topc.platform.model.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class SaveAnnouncementDto {

    @NotEmpty
    private String title;

    @NotEmpty
    private String content;

    @Range(min = -1, max = 2)
    private int status;

}
